/*
 * @FilePath: index.js
 * @Author: 杜芬
 * @Date: 2025-04-21 16:02:59
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2025-04-22 14:10:06
 * Copyright: 2025 xxxTech CO.,LTD. All Rights Reserved.
 * @Descripttion: 页面
 */
import { createRouter, createWebHashHistory } from "vue-router";
// 制定路由规则
const routes = [
  {
    path: "/",
    name: "main",
    component: () => import("@/views/Main.vue"),
    redirect: '/home',// 重定向
    children:[
      {
        path: "/home",
        name: "home",
        component: () => import("@/views/Home.vue"),
      },
    ]
  },
 
  
]
const router = createRouter({
  history: createWebHashHistory(),
  routes,
})

export default router;